package ch04;
import java.util.Scanner;
/**
 * Created by hasee on 2017/6/15.
 */
public class GradeReport {
    public static void main(String[] args) {
        int grade,category;
        Scanner scan = new Scanner(System.in);

        System.out.print("Enter a numeric grade(0 to 100):");
        grade = scan.nextInt();

        category = grade/10;

        System.out.print("That grade is");
        switch (category)
        {
            case 10:
                System.out.println("a perfect score.Well done.");
                break;
            case 9:
                System.out.println("well above average. Excellent.");
                break;
            case 8:
                System.out.println("above average.Nice job.");
                break;
            case 7:
                System.out.println("average.");
                break;
            case 6:
                System.out.print("below average.Please see the");
                System.out.println("instructor for assistance.");
                break;
                default:
                    System.out.println("not passing.");
        }
    }
}
